import { requestServerData, requestServerData1 } from './util'
module.exports = {
  HOME: params => requestServerData('article/list', 'POST', params), //首页列表
  WEATHER: params => requestServerData1('user/wechatTipsIndex', 'GET', params), //天气
  dateInfo: params => requestServerData1('calendar/search', 'GET', params), // 农历信息
  articleInfo: params => requestServerData1('article/detail', 'GET', params), //首页列表详情
  homeType: params => requestServerData1('articleCategory/allCategory', 'GET', params), //首页分类
  collect: params => requestServerData1('article/collectCount', 'GET', params), //文章收藏
  delcollect: params => requestServerData1('article/deCollect', 'GET', params), //取消收藏
  healthList: params => requestServerData('sixoldfriend/health-product/list', 'GET', params),
  inquitrySearh: params => requestServerData1('food/search', 'POST', params), //保健品查询
  inquitryInfo: params => requestServerData1('food/detail', 'POST', params), //保健品结果
  login: params => requestServerData('user/loginByWechatMini', 'POST', params), //登录
  followList: params => requestServerData('article/collectCount', 'GET', params), //收藏
  userhealthyList: params => requestServerData1('user/getUserDiseases', 'GET', params), //获取用户疾病列表
  healthyList: params => requestServerData1('user/getAllDiseaseList', 'GET', params), //获取疾病列表
  addHealthy: params => requestServerData('user/updateDiseases', 'POST', params), //获取用户疾病列表
  delHealthy: params => requestServerData1('user/removeDisease', 'GET', params), //删除用户疾病
  userFollow: params => requestServerData('article/myCollectList', 'POST', params), //我的收藏列表
  getListByUser: params => requestServerData('food/listByUser', 'POST', params), // 获取是否能吃列表
  getFoodCategoryList: params => requestServerData('foodCategory/list', 'POST', params), // 获取食物分裂列表
  getFoodDetail: params => requestServerData('food/detail', 'GET', params), // 获取食物详情
  addOrUpdate: params => requestServerData('user/addOrUpdate', 'POST', params), // 添加或修改用户信息
  setLikeCount: params => requestServerData('article/likeCount', 'GET', params), // 点击计数
  getHealthProducts: params => requestServerData('foodRegist/search', 'POST', params), //// 保健食品列表
  getputOnProducts: params => requestServerData('putOnRecord/search', 'POST', params), //// 备案列表
  foodRegistDetail: params => requestServerData1('foodRegist/detail', 'GET', params), // 保健食品详情
}
